home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 June / EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso / earcd / gcc / ixemlsrc.lha / ixemul / glue / Makefile.in < prev   
Makefile  |  1996-03-13  |  2KB  |  92 lines

  1. # Glue comes in two flavors, one for flat address spaces and one for base
  2. # relative.  When gen_glue is compiled, which form of glue is generated
  3. # when it is run depends upon whether "__no_baserel" or "__baserel" was defined
  4. # when it was compiled.
  5.  
  6. #### Start of system configuration section. ####
  7.  
  8. srcdir =    @srcdir@
  9.  
  10. ifeq ($(srcdir),.)
  11. srcdir = ..
  12. endif
  13.  
  14. VPATH :=    $(srcdir)
  15.  
  16. # Common prefix for machine-independent installed files.
  17. prefix =    @prefix@
  18.  
  19. # Common prefix for machine-dependent installed files.
  20. exec_prefix =    @exec_prefix@
  21.  
  22. bindir =    $(exec_prefix)/bin
  23. libdir =    $(exec_prefix)/Sys/libs
  24.  
  25. INSTALL =    @INSTALL@
  26. INSTALL_DATA =    @INSTALL_DATA@
  27.  
  28. CC =        @CC@
  29. AS =        as
  30.  
  31. CFLAGS =    @CFLAGS@
  32. LDFLAGS =    @LDFLAGS@
  33.  
  34. RANLIB =    @RANLIB@
  35. AR =        ar
  36. RM =        rm -f
  37.  
  38. #### End system configuration section ####
  39.  
  40. # BASE is defined to be either "no-baserel" or "baserel" by an upper level
  41. # makefile.  The default is "no-baserel".
  42.  
  43. BASE =        no-baserel
  44.  
  45. FLAVOR_CFLAGS =
  46. OTHER_CFLAGS =    -fomit-frame-pointer
  47. ALL_CFLAGS =    $(CFLAGS) $(FLAVOR_CFLAGS) $(OTHER_CFLAGS) $(INCS)
  48.  
  49. INCS =        -I$(srcdir) -I$(srcdir)/../library -I$(srcdir)/../include
  50. LIB =        libglue.a
  51. LIB_P =        libglue_p.a
  52. SHELL =        /bin/sh
  53.  
  54. .c.o:
  55.         $(CC) $(ALL_CFLAGS) -c $< -o $@
  56.  
  57. .s.o:
  58.         cp $< x.c
  59.         $(CC) $(CFLAGS) $(OTHER_CFLAGS) -traditional -E x.c -o x.s
  60.         $(CC) $(CFLAGS) $(OTHER_CFLAGS) $(INCS) -c x.s -o $@
  61.         $(RM) x.c x.s
  62.  
  63.  
  64. ifeq ($(BASE),baserel)
  65. all:        gen_glue $(LIB)
  66. else
  67. all:        gen_glue $(LIB) $(LIB_P)
  68. endif
  69.  
  70. gen_glue:    gen_glue.c $(srcdir)/../include/sys/syscall.def
  71.         $(CC) $(ALL_CFLAGS) $< -o $@
  72.  
  73. $(LIB):        $(srcdir)/../include/sys/syscall.def
  74.         rm -f *.[os]
  75.         ./gen_glue $(BASE)
  76.         for asm in *.s; do echo $$asm ; $(AS) -m68000 $$asm -o $$asm.o; done
  77.         $(AR) rv $@ *.o
  78.         rm -f *.[os]
  79.  
  80. $(LIB_P):    $(srcdir)/../include/sys/syscall.def
  81.         rm -f *.[os]
  82.         ./gen_glue profiling
  83.         for asm in *.s; do echo $$asm ; $(AS) -m68000 $$asm -o $$asm.o; done
  84.         $(AR) rv $@ *.o
  85.         rm -f *.[os]
  86.  
  87. clean:
  88.         rm -rf *baserel
  89.  
  90. clobber:    clean
  91.         rm -f Makefile
  92.